package com.ls.pattern.state.v2.model;


import com.ls.pattern.state.v2.OrderStateEnum;
import com.ls.pattern.state.v2.OrderStateMachine;

public class RefundingState implements OrderState {

    @Override
    public OrderStateEnum orderStateType() {
        return OrderStateEnum.REFUNDING;
    }

    @Override
    public void confirmRefund(OrderStateMachine stateMachine) {
        stateMachine.setCurrentState(new RefundedState());
    }
}
